﻿using Ninject.Modules;
using Spotted.Web.Data.DataProvider;
using Spotted.Web.Data.DataProvider.Impl;

namespace Spotted.WebApi.Core
{
    public class DataProviderNinjectModule : NinjectModule
    {
        #region Overrides of NinjectModule

        /// <summary>
        /// Loads the module into the kernel.
        /// </summary>
        public override void Load()
        {
            Bind<ISpotDataProvider>().To<EfSpotDataProvider>();
            Bind<IUserDataProvider>().To<EfUserDataProvider>();
        }

        #endregion
    }
}